<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>修改个人信息</title>
</head>
<body>
    <h1>修改个人信息</h1>

    <form action="{:Url('index/index/editProfile')}" method="post">
        <table border="1">
            <tr>
                <th>用户名</th>
                <td><input type="text" name="username" value="{$user.username}" readonly> (用户名不可修改)</td>
            </tr>
            <tr>
                <th>邮箱</th>
                <td><input type="email" name="email" value="{$user.email}"></td>
            </tr>
            <tr>
                <th>电话</th>
                <td><input type="text" name="phone" value="{$user.phone}"></td>
            </tr>
            <tr>
                <th>地址</th>
                <td><input type="text" name="address" value="{$user.address}"></td>
            </tr>
            <tr>
                <th>新密码</th>
                <td><input type="password" name="new_password" placeholder="留空表示不修改密码"></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="保存修改">
                </td>
            </tr>
        </table>
    </form>
    <br>
    <a href="{:Url('index/index/profile')}">返回个人信息</a> |
    <a href="{:Url('index/index/index')}">返回首页</a>
</body>
</html>